<?php
class TDataTableCarenciaVagas extends TDataTable
{
    public function __construct($lotacaoid, $cargoid)
    {
        $model  = new ViewVagasCarencia();
        $key = 'vagaid';
        $options = array('checkColumn'=>FALSE,'radioColumn'=>TRUE, 'editColumn'=>FALSE);
		$criterio = array();
		$criterio['precondicao'] = " (lotacaoid = $lotacaoid or lotacaoid IS null) AND cargoid = $cargoid";
		        
		parent::__construct($model, $key, $criterio, $options);
		$this->addColumnsData(array('vagaid', 'contratoid', 'orgao', 'empresa', 'cargo', 'lotacao', 'salario'));    
    }
}